-- GENERATED SPELL FOR [Bloodmaul Geomancer] --


function spell0_19952(pUnit, Event) --@Bloodmaul Buzz,Self--
pUnit:FullCastSpellOnTarget(34932,pUnit)
pUnit:RegisterEvent('Sorts_19952', 20322, 1)
end

function spell1_19952(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19952', 3000, 1)
end

function spell2_19952(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_19952', 0, 1)
end

function Sorts_19952(pUnit, Event)
local choix_sorts_19952 = math.random(0, 2)
if choix_sorts_19952 == 0 then
pUnit:RegisterEvent('spell0_19952', 1, 1)
end
if choix_sorts_19952 == 1 then
pUnit:RegisterEvent('spell1_19952', 1, 1)
end
if choix_sorts_19952 == 2 then
pUnit:RegisterEvent('spell2_19952', 1, 1)
end
end

function mob19952_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19952', math.random(1500, 3000), 1)
end

function mob19952_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19952_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19952_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19952, 1, 'mob19952_Action')
RegisterUnitEvent(19952, 2, 'mob19952_Leave')
RegisterUnitEvent(19952, 3, 'mob19952_Kill')
RegisterUnitEvent(19952, 4, 'mob19952_Die')
